//
//  TZDreamViewController.m
//  wangYiLottery
//
//  Created by mac on 16/2/3.
//  Copyright © 2016年 tz. All rights reserved.
//

#import "TZDreamViewController.h"
#import "CZRotateView.h"

@interface TZDreamViewController ()

@end

@implementation TZDreamViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.title = @"梦想大转盘";
    // Do any additional setup after loading the view, typically from a nib.
    
    // 设置控制器的背景图片(拉伸)
    self.view.layer.contents = (__bridge id)([UIImage imageNamed:@"LuckyBackground"].CGImage);
    
    // 平铺
    //    self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"LuckyBackground"]];
    
    CZRotateView* rotateView = [CZRotateView rotateView];
    
    // 设置这个view在屏幕中间
    rotateView.center = self.view.center;
    
    [self.view addSubview:rotateView];
    
    [rotateView startRotate];

}
@end

